import alipay from '@/assets/images/alipay.png';
import bank from '@/assets/images/bank.png';
import wechat from '@/assets/images/wechat.png';

import { WithdrawMethodIcon } from '../const';

export const totalSellStatus = ['全部卡单', '全部成功', '全部失败', '正在处理', '部分成功'].map(
  (item, index) => ({ text: item, value: index }),
);

export const totalTransactionStatus = ['全部类型', '入账', '支出'].map((item, index) => ({ text: item, value: index }));

export const totalWithdrawStatus = ['完成', '处理中', '失败'].map((item, index) => ({ text: item, value: index + 1 }));

export const withdrawType: Record<number, string> = {
  [WithdrawMethodIcon.alipay]: alipay,
  [WithdrawMethodIcon.wechat]: wechat,
  [WithdrawMethodIcon.bank]: bank,
};
